---
name: "mlpack_amf_SVDCompleteIncrementalLearning_ arma_sp_mat _"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_amf_SVDCompleteIncrementalLearning_ arma_sp_mat _"
---

# mlpack\_amf\_SVDCompleteIncrementalLearning\_ arma\_sp\_mat \_(3)

## NAME

mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \> -

## SYNOPSIS

### Public Member Functions

**SVDCompleteIncrementalLearning** (double **u**=0.01, double **kw**=0, double **kh**=0)\
 **~SVDCompleteIncrementalLearning** ()\
 void **HUpdate** (const arma::sp\_mat &V, const arma::mat &W, arma::mat &H)\
 *The update rule for the encoding matrix H.*  void **Initialize** (const arma::sp\_mat &dataset, const size\_t rank)\
 void **WUpdate** (const arma::sp\_mat &V, arma::mat &W, const arma::mat &H)\
 *The update rule for the basis matrix W.*

### Private Attributes

arma::sp\_mat **dummy**\
 bool **isStart**\
 arma::sp\_mat::const\_iterator \* **it**\
 double **kh**\
 double **kw**\
 size\_t **m**\
 size\_t **n**\
 double **u**\

## Detailed Description

### template\<\>class mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>

Definition at line 130 of file svd\_complete\_incremental\_learning.hpp.

## Constructor & Destructor Documentation

### mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::SVDCompleteIncrementalLearning (doubleu = `0.01`, doublekw = `0`, doublekh = `0`)` [inline]`

Definition at line 133 of file svd\_complete\_incremental\_learning.hpp.

### mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::~SVDCompleteIncrementalLearning ()` [inline]`

Definition at line 139 of file svd\_complete\_incremental\_learning.hpp.

## Member Function Documentation

### void mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::HUpdate (const arma::sp\_mat &V, const arma::mat &W, arma::mat &H)` [inline]`

The update rule for the encoding matrix H. The function takes in all the matrices and only changes the value of the H matrix.

**Parameters:**

*V* Input matrix to be factorized. \
 *W* Basis matrix. \
 *H* Encoding matrix to be updated.

Definition at line 198 of file svd\_complete\_incremental\_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::kh, and mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::u.

### void mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::Initialize (const arma::sp\_mat &dataset, const size\_trank)` [inline]`

Definition at line 144 of file svd\_complete\_incremental\_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::m, and mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::n.

### void mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::WUpdate (const arma::sp\_mat &V, arma::mat &W, const arma::mat &H)` [inline]`

The update rule for the basis matrix W. The function takes in all the matrices and only changes the value of the W matrix.

**Parameters:**

*V* Input matrix to be factorized. \
 *W* Basis matrix to be updated. \
 *H* Encoding matrix.

Definition at line 163 of file svd\_complete\_incremental\_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::kw, and mlpack::amf::SVDCompleteIncrementalLearning\< MatType \>::u.

## Member Data Documentation

### arma::sp\_mat mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::dummy` [private]`

Definition at line 225 of file svd\_complete\_incremental\_learning.hpp.

### bool mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::isStart` [private]`

Definition at line 228 of file svd\_complete\_incremental\_learning.hpp.

### arma::sp\_mat::const\_iterator\* mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::it` [private]`

Definition at line 226 of file svd\_complete\_incremental\_learning.hpp.

### double mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::kh` [private]`

Definition at line 220 of file svd\_complete\_incremental\_learning.hpp.

### double mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::kw` [private]`

Definition at line 219 of file svd\_complete\_incremental\_learning.hpp.

### size\_t mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::m` [private]`

Definition at line 223 of file svd\_complete\_incremental\_learning.hpp.

### size\_t mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::n` [private]`

Definition at line 222 of file svd\_complete\_incremental\_learning.hpp.

### double mlpack::amf::SVDCompleteIncrementalLearning\< arma::sp\_mat \>::u` [private]`

Definition at line 218 of file svd\_complete\_incremental\_learning.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
